import pickle


def save_variable(v, filename):
    with open(filename, 'wb') as f:
        pickle.dump(v, f)
    return filename


def load_variable(filename):
    with open(filename, 'rb') as f:
        r = pickle.load(f)
    return r
